<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<body>
		
	</body>
</html>
<script type="text/javascript">
	var arr = [11,22,33,44,55,66];
	var foreach = [];
	
	var obj = {
		name:"zjj",
		age:"18"
	}
	
	// var arr2=arr.forEach(function(val,idx,nowarr){
	// 	console.log(val,idx,nowarr);
	// 	foreach.push(this.name + ": " +val+ " 索引为：" + idx);
	// 	return nowarr
	// },obj)
	// 
	var arr2 = arr.forEach(function(val,idx,nowarr){
		nowarr.push(123);
		console.log(val,idx,nowarr);
	},obj)
	
	console.log(arr,foreach,arr2)	
	
</script>